package com.kb.design.service;

import com.kb.design.dto.Children;
import com.kb.design.entity.DesignDept;
import com.kb.design.entity.DesignPost;
import com.kb.design.vo.DesignDeptVO;
import com.kb.design.vo.DesignPostVO;

import java.util.List;

/**
 * @Auther:chenzx
 * @Date:2024-04-01
 * @Description:
 */
public interface PostService {
    List<DesignPost> selectDeptList(DesignPost post);
    DesignPost getPostById(Long id);
    DesignPost getPostByUserCode(String id);
    void insertPost(DesignPost dept);
    /**
     * 根据ID查询数量
     *
     * @param
     * @return 结果
     */
    public long selectPostCount(Long id);

    /**
     * 查询是否是主管
     *
     * @param
     * @return 结果
     */
    public Boolean queryPostUser(String id);
    /**
     * 删除部门管理信息
     *
     * @param
     * @return 结果
     */
    public long deletePostById(Long id);
    /**
     * 校验名称是否唯一
     *
     * @param
     * @return 结果
     */
    public boolean checkPostNameUnique(DesignPost post);

    /**
     * 修改保存岗位信息
     *
     * @param post
     * @return 结果
     */
    public int updatePost(DesignPost post);

    public Children queryPostUser();
}
